from django.db import models

# Create your models here

class Slogan (models.Model):
 title = models.TextField()
def __unicode__ (self):
 return self.body
 
class Categorie (models.Model):
 body = models.TextField()
def __unicode__ (self):
 return self.body
 
class Post (models.Model):
 title = models.CharField(max_length=100)
 body = models.TextField()
 created = models.DateTimeField()
 category = models.ForeignKey(Categorie)
def __unicode__ (self):
 return self.title
 
class Page (models.Model):
 title = models.CharField(max_length=100)
 body = models.TextField()
 created = models.DateTimeField()
def __unicode__ (self):
 return self.title
 
class Website (models.Model):
 title = models.CharField(max_length=100)
 body = models.TextField()
def __unicode__ (self):
 return self.title
 
class CloseBlog (models.Model):
 title = models.TextField()
def __unicode__ (self):
 return self.title
 
class BlogTitle(models.Model):
 title = models.TextField()
def __unicode__ (self):
 return self.title 
 

 
 
